//
//  CommonConstant.swift
//  Edaixi-iOS
//
//  Created by 刘树华 on 2017/11/28.
//  Copyright © 2017年 刘树华. All rights reserved.
//

import Foundation
import UIKit

let WINDOW = (UIApplication.shared.delegate?.window!)!

let SCREEN_WIDTH = UIScreen.main.bounds.width
let SCREEN_HEIGHT = UIScreen.main.bounds.height

let STATUSBAR_HEIGHT : CGFloat = UIApplication.shared.statusBarFrame.height

let UITABBAR_HEIGHT : CGFloat = SCREEN_HEIGHT > 800 ? 83 : 49

let NAVIGATIONBAR_HEIGHT : CGFloat = STATUSBAR_HEIGHT + 44



let IS_IPHONEX : Bool = SCREEN_HEIGHT > 800 ? true : false


let SYSTEM_VERSION = UIDevice.current.systemVersion

let APP_VERSION = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as! String


let USERDEFAULT = UserDefaults.standard
let NOTIFICATIONCENTER = NotificationCenter.default
let DOCUMENTS = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).last!



